<template>
    <div>
        <h1>我是Home</h1>
        <router-link class="list-group-item" to="/home/message">message</router-link>
        <router-link class="list-group-item" to="/home/news">news</router-link>
        <router-view  :title="'我是传来的参数'"/>
    </div>
</template>

<script>
export default {
    name: "HomeCom",
    created(){
        console.log('我是Home被创建了');
    },
    beforeDestroy(){
        console.log('我是Home被卸载了');
    }
}
</script>